FROM python:3.7.10-slim-buster
# FROM locustio/locust
MAINTAINER mamamafeng

RUN mkdir /load_test
WORKDIR /load_test

ENV PYTHONPATH "${PYTHONPATH}:/load_test"

COPY .. /load_test
RUN pip install --no-cache-dir -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

CMD ["locust","-f","locustfiles/sample1.py"]